<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>freemarker介绍</title>
</head>

<h2>freemarker介绍</h2>
你好，${name!'游客'}<br/>
${price?string('￥ 0,000.00')}<br/>
${date?string('yyyy年MM月dd日')}<br/>
<#if gender==true> 男 <#else> 女 </#if><br/>
<#if major??>${major}</#if></br>
${(gender==true)?string('男','女')}

</body>
</html>